package edu.towson.cosc.cosc455.rlee.compiler;

public class MyCompiler {
	
	public static String token;
	static MyLexicalAnalyzer lexer;
	static MySyntaxAnalyzer parser;
	static MySemanticAnalyzer generator;
	
	public static void main(String[] args) {
		// check that there is 1 argument
		if(args.length != 1) {
			System.out.println("ERROR: One argument required");
			System.exit(0);
		}
		
		// ensure correct extension (.lol)
		// initializations (parse tree array?)
		
		lexer = new MyLexicalAnalyzer();
		lexer.getNextToken();
		
		parser = new MySyntaxAnalyzer();
		parser.lolcode();
		
		generator = new MySemanticAnalyzer();
		// call Semantic Analyzer
		
		// write output file
		// clean up?
	}
}